package com.longtxt.core.ble.model

data class Daily(
    val id: Int = 0,
    val date: Long = 0,
    val step: Int,
    val deepHour: Int, val deepMin: Int,
    val lowHour: Int,
    val lowMin: Int,
    val wakeTime: Int,
) {
    fun updateValue(daily: Daily): Daily {
        return Daily(
            this.id,
            this.date,
            daily.step,
            daily.deepHour,
            daily.deepMin,
            daily.lowHour,
            daily.lowMin,
            daily.wakeTime
        )
    }

    companion object {
        fun default(): Daily {
            return Daily(
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            )
        }
    }
}
